// 引入koa-router
const Router = require('koa-router')
// 引入用户模块子路由
// 用户模块路由
const usersRouter = require('../router/usersRouter/users.router')
// 图片上传路由
const uploadRouter = require('../router/uploadRouter/upload.router')
// 会员管理模块
const vipRouter = require('../router/vipRouter/vip.router')
// 首页数据模块
const dataRouter = require('../router/dataRouter/data.router')
// 员工管理模块
const staffRouter = require('../router/staffRouter/staff.router')
// 获取商品
const goodsRouter = require('../router/goodsRouter/goods.router')
// 套餐管理模块
const packageRouter = require('../router/packageRouter/package.router')
// 工资条管理模块
const salaryRouter = require('../router/salaryRouter/salary.router')
// 消费收银模块
const consumeRouter = require('../router/consumeRouter/consume.router')
// 创建实例
const router = new Router()

// 使用子路由
router.use(usersRouter.routes())
router.use(uploadRouter.routes())
router.use(vipRouter.routes())
router.use(dataRouter.routes())
router.use(staffRouter.routes())
router.use(goodsRouter.routes())
router.use(packageRouter.routes())
router.use(salaryRouter.routes())
router.use(consumeRouter.routes())
module.exports = router